package com.znzz.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController//返回的是ajax
@RequestMapping("/books")
public class BookController {
    @GetMapping
    public String getBooks() {
        System.out.println("springboot is running");
        return "<h2 style='color:red'>springboot is running<h2>";
    }
}
